import request from '@/utils/request'

export function getPage(name, page, pageSize,status,orderId) {
  return request({
    url: '/leaseOrder/page',
    params: {
      name: name,
      page: page,
      pageSize: pageSize,
      status:status,
      orderId: orderId
    },
    method: 'get'
  })
}
export function changeStatus(status,orderId) {
  return request({
    url: '/leaseOrder/'+status,
    params:{
      orderId:orderId
    },
    method: 'put'
  })
}

export function OrderCancelRefund(status, orderId,reason) {
  return request({
    url: '/leaseOrder/cancel',
    data:{
      orderId:orderId,
      reason:reason,
      status:status
    },
    method: 'post'
  })
}